//
//  OpenurlSampleAppDelegate.m
//  OpenurlSample
//
//  Created by abhinav on 11/08/11.
//  Copyright 2011 Anna University. All rights reserved.
//

#import "OpenurlSampleAppDelegate.h"
#import "OpenurlSampleViewController.h"

@implementation OpenurlSampleAppDelegate

@synthesize window;
@synthesize viewController;


#pragma mark -
#pragma mark Application lifecycle

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    
    // Override point for customization after application launch.

	// Set the view controller as the window's root view controller and display.
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    return YES;
}




-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
	NSLog(@"the url is printed %@",[url query]);

	return NO;
}

-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url
{
	NSLog(@"the url is printed :) :) :) :) :) :) : ------");
	return	NO;
}


- (void)dealloc {
    [viewController release];
    [window release];
    [super dealloc];
}


@end
